package com.chzu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chzu.pojo.ReadScore;
import com.chzu.pojo.vo.ScoreChartDateVo;
import com.chzu.pojo.vo.SemesterAndReadScoreVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author lz
 * @Version 1.0
 * @Company 滁州大健康与养老产业研究院
 * @ClassName ReadScoreMapper
 * @Description TODO
 * @Date 2022/02/10 22:13
 */
public interface ReadScoreMapper extends BaseMapper<ReadScore> {
    /**
     *获取用户阅读推文所得的积分
     * @param openId 微信唯一标识
     * @return
     */
    ReadScore getReadScore(@Param("openId") String openId);

    /**
     * 获取各个阅读推文积分段人数
     * @return
     */
    List<ScoreChartDateVo> getStudentNumByScore();

}
